package com.zhen.module.contorller;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class ParamObjectContorller {

    @RequestMapping("/doHandleRequestParam01")
    public String doHandleRequestParam01(String name){
        return "request params is "+name;
    }

    @RequestMapping("/doHandleRequestParsm02")
    public String doHandleRequestParsm02(String name,
                                         @DateTimeFormat(pattern = "yyyy-MM-dd") Date date){
        return "rquest param name = "+name+"rquest param date = "+date;
    }







}
